package com.lhsy.djcloud.service.impl;

import com.lhsy.djcloud.entity.Menu;
import com.lhsy.djcloud.mapper.MenuMapper;
import com.lhsy.djcloud.service.MenuService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author wangzw
 * @since 2020-09-16
 */
@Service
public class MenuServiceImpl extends ServiceImpl<MenuMapper, Menu> implements MenuService {
    @Autowired private MenuMapper menuMapper;
    @Override
    public List<Menu> selectByUserId(Integer userId) {

        return menuMapper.selectByUserId(userId);
    }
}
